package com.study.zzedu;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;

import com.aliyun.svideo.common.utils.ToastUtils;
import com.study.zzedu.utils.ToastUtil;
import com.xuexiang.xupdate.XUpdate;
import com.xuexiang.xupdate.entity.UpdateError;
import com.xuexiang.xupdate.listener.OnUpdateFailureListener;
import com.xuexiang.xupdate.utils.UpdateUtils;

import static com.xuexiang.xupdate.entity.UpdateError.ERROR.CHECK_NO_NEW_VERSION;

public class MyApplication extends Application {

    private static Context context;

    public void onCreate(){
        super.onCreate();
        MultiDex.install(this);
        MyApplication.context = getApplicationContext();

        //initUpdate();
    }

    public static Context getAppContext() {
        return MyApplication.context;
    }
}